package com.basker.pisces.domain.validation.validator;

import com.basker.pisces.domain.command.CommandExecuteContext;
import com.basker.pisces.domain.entity.meta.Entity;

public abstract class AbstractValidator implements ICommandValidator {
    private CommandExecuteContext context;

    @Override
    public final CommandExecuteContext getContext() {
        return context;
    }

    @Override
    public Entity getEntity() {
        return context.getEntity();
    }

    @Override
    public void setContext(CommandExecuteContext context) {
        this.context = context;
    }

}
